/**
* @author:kellen
* @contact:xiekellen@hotmail.com
* @company:achivo-gz
* @created on:
* @modified on:
*/

package com.sasis.dao;

import java.util.List;

import com.sasis.dao.Dao;
import com.sasis.model.ConsumeProduct;

public interface ConsumeProductDao extends Dao {

    /**
     * Retrieves all of the consumeProducts
     */
    public List getConsumeProducts(ConsumeProduct consumeProduct);

    /**
     * Gets consumeProduct's information based on primary key. An
     * ObjectRetrievalFailureException Runtime Exception is thrown if 
     * nothing is found.
     * 
     * @param id the consumeProduct's id
     * @return consumeProduct populated consumeProduct object
     */
    public ConsumeProduct getConsumeProduct(final Integer id);

    /**
     * Saves a consumeProduct's information
     * @param consumeProduct the object to be saved
     */    
    public void saveConsumeProduct(ConsumeProduct consumeProduct);

    /**
     * Removes a consumeProduct from the database by id
     * @param id the consumeProduct's id
     */
    public void removeConsumeProduct(ConsumeProduct consumeProduct);
}

